package dp.gr03.payroll.classificationTransaction;

import dp.gr03.payroll.classifications.SalariedClassification;
import dp.gr03.payroll.payrollDomain.PaymentClassification;
import dp.gr03.payroll.payrollDomain.PaymentSchedule;
import dp.gr03.payroll.schedules.MonthlySchedule;


public class ChangeSalariedTransaction extends ChangeClassificationTransaction
{
    private double salary;

    public ChangeSalariedTransaction(int empId, double salary)
    {
        super(empId);
        this.salary = salary;
    }

    @Override
    public PaymentClassification getPaymentClassification()
    {
        return new SalariedClassification(salary);
    }

    @Override
    public PaymentSchedule getPaymentSchedule()
    {
        return new MonthlySchedule();
    }

}
